<?php

namespace Database\Factories;

use App\Models\System;
use Illuminate\Database\Eloquent\Factories\Factory;

class LessonFactory extends Factory
{
    /**
     * Define the model's default state.
     *
     * @return array
     */
    public function definition()
    {
        return [
            'title' => $this->faker->sentence(),
            'description' => $this->faker->sentence(),
            'preview' => url('fake/system',mt_rand(1,3).'.jpg'),
            'system_id' => System::inRandomOrder()->first()->id
            //
        ];
    }
}
